package com.jelly.web.modules.basics.dictionary.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DiyTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DiyTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDiyTypeIdIsNull() {
            addCriterion("diy_type_id is null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdIsNotNull() {
            addCriterion("diy_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdEqualTo(String value) {
            addCriterion("diy_type_id =", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdNotEqualTo(String value) {
            addCriterion("diy_type_id <>", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdGreaterThan(String value) {
            addCriterion("diy_type_id >", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("diy_type_id >=", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdLessThan(String value) {
            addCriterion("diy_type_id <", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdLessThanOrEqualTo(String value) {
            addCriterion("diy_type_id <=", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdLike(String value) {
            addCriterion("diy_type_id like", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdNotLike(String value) {
            addCriterion("diy_type_id not like", value, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdIn(List<String> values) {
            addCriterion("diy_type_id in", values, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdNotIn(List<String> values) {
            addCriterion("diy_type_id not in", values, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdBetween(String value1, String value2) {
            addCriterion("diy_type_id between", value1, value2, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeIdNotBetween(String value1, String value2) {
            addCriterion("diy_type_id not between", value1, value2, "diyTypeId");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameIsNull() {
            addCriterion("diy_type_name is null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameIsNotNull() {
            addCriterion("diy_type_name is not null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameEqualTo(String value) {
            addCriterion("diy_type_name =", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameNotEqualTo(String value) {
            addCriterion("diy_type_name <>", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameGreaterThan(String value) {
            addCriterion("diy_type_name >", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameGreaterThanOrEqualTo(String value) {
            addCriterion("diy_type_name >=", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameLessThan(String value) {
            addCriterion("diy_type_name <", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameLessThanOrEqualTo(String value) {
            addCriterion("diy_type_name <=", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameLike(String value) {
            addCriterion("diy_type_name like", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameNotLike(String value) {
            addCriterion("diy_type_name not like", value, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameIn(List<String> values) {
            addCriterion("diy_type_name in", values, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameNotIn(List<String> values) {
            addCriterion("diy_type_name not in", values, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameBetween(String value1, String value2) {
            addCriterion("diy_type_name between", value1, value2, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeNameNotBetween(String value1, String value2) {
            addCriterion("diy_type_name not between", value1, value2, "diyTypeName");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteIsNull() {
            addCriterion("diy_type_route is null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteIsNotNull() {
            addCriterion("diy_type_route is not null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteEqualTo(String value) {
            addCriterion("diy_type_route =", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteNotEqualTo(String value) {
            addCriterion("diy_type_route <>", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteGreaterThan(String value) {
            addCriterion("diy_type_route >", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteGreaterThanOrEqualTo(String value) {
            addCriterion("diy_type_route >=", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteLessThan(String value) {
            addCriterion("diy_type_route <", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteLessThanOrEqualTo(String value) {
            addCriterion("diy_type_route <=", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteLike(String value) {
            addCriterion("diy_type_route like", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteNotLike(String value) {
            addCriterion("diy_type_route not like", value, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteIn(List<String> values) {
            addCriterion("diy_type_route in", values, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteNotIn(List<String> values) {
            addCriterion("diy_type_route not in", values, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteBetween(String value1, String value2) {
            addCriterion("diy_type_route between", value1, value2, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeRouteNotBetween(String value1, String value2) {
            addCriterion("diy_type_route not between", value1, value2, "diyTypeRoute");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassIsNull() {
            addCriterion("diy_type_class is null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassIsNotNull() {
            addCriterion("diy_type_class is not null");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassEqualTo(String value) {
            addCriterion("diy_type_class =", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassNotEqualTo(String value) {
            addCriterion("diy_type_class <>", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassGreaterThan(String value) {
            addCriterion("diy_type_class >", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassGreaterThanOrEqualTo(String value) {
            addCriterion("diy_type_class >=", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassLessThan(String value) {
            addCriterion("diy_type_class <", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassLessThanOrEqualTo(String value) {
            addCriterion("diy_type_class <=", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassLike(String value) {
            addCriterion("diy_type_class like", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassNotLike(String value) {
            addCriterion("diy_type_class not like", value, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassIn(List<String> values) {
            addCriterion("diy_type_class in", values, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassNotIn(List<String> values) {
            addCriterion("diy_type_class not in", values, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassBetween(String value1, String value2) {
            addCriterion("diy_type_class between", value1, value2, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andDiyTypeClassNotBetween(String value1, String value2) {
            addCriterion("diy_type_class not between", value1, value2, "diyTypeClass");
            return (Criteria) this;
        }

        public Criteria andIsStateIsNull() {
            addCriterion("is_state is null");
            return (Criteria) this;
        }

        public Criteria andIsStateIsNotNull() {
            addCriterion("is_state is not null");
            return (Criteria) this;
        }

        public Criteria andIsStateEqualTo(String value) {
            addCriterion("is_state =", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateNotEqualTo(String value) {
            addCriterion("is_state <>", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateGreaterThan(String value) {
            addCriterion("is_state >", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateGreaterThanOrEqualTo(String value) {
            addCriterion("is_state >=", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateLessThan(String value) {
            addCriterion("is_state <", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateLessThanOrEqualTo(String value) {
            addCriterion("is_state <=", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateLike(String value) {
            addCriterion("is_state like", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateNotLike(String value) {
            addCriterion("is_state not like", value, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateIn(List<String> values) {
            addCriterion("is_state in", values, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateNotIn(List<String> values) {
            addCriterion("is_state not in", values, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateBetween(String value1, String value2) {
            addCriterion("is_state between", value1, value2, "isState");
            return (Criteria) this;
        }

        public Criteria andIsStateNotBetween(String value1, String value2) {
            addCriterion("is_state not between", value1, value2, "isState");
            return (Criteria) this;
        }

        public Criteria andAddIdIsNull() {
            addCriterion("add_id is null");
            return (Criteria) this;
        }

        public Criteria andAddIdIsNotNull() {
            addCriterion("add_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddIdEqualTo(String value) {
            addCriterion("add_id =", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdNotEqualTo(String value) {
            addCriterion("add_id <>", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdGreaterThan(String value) {
            addCriterion("add_id >", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdGreaterThanOrEqualTo(String value) {
            addCriterion("add_id >=", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdLessThan(String value) {
            addCriterion("add_id <", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdLessThanOrEqualTo(String value) {
            addCriterion("add_id <=", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdLike(String value) {
            addCriterion("add_id like", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdNotLike(String value) {
            addCriterion("add_id not like", value, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdIn(List<String> values) {
            addCriterion("add_id in", values, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdNotIn(List<String> values) {
            addCriterion("add_id not in", values, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdBetween(String value1, String value2) {
            addCriterion("add_id between", value1, value2, "addId");
            return (Criteria) this;
        }

        public Criteria andAddIdNotBetween(String value1, String value2) {
            addCriterion("add_id not between", value1, value2, "addId");
            return (Criteria) this;
        }

        public Criteria andAddDateIsNull() {
            addCriterion("add_date is null");
            return (Criteria) this;
        }

        public Criteria andAddDateIsNotNull() {
            addCriterion("add_date is not null");
            return (Criteria) this;
        }

        public Criteria andAddDateEqualTo(Date value) {
            addCriterion("add_date =", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateNotEqualTo(Date value) {
            addCriterion("add_date <>", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateGreaterThan(Date value) {
            addCriterion("add_date >", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateGreaterThanOrEqualTo(Date value) {
            addCriterion("add_date >=", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateLessThan(Date value) {
            addCriterion("add_date <", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateLessThanOrEqualTo(Date value) {
            addCriterion("add_date <=", value, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateIn(List<Date> values) {
            addCriterion("add_date in", values, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateNotIn(List<Date> values) {
            addCriterion("add_date not in", values, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateBetween(Date value1, Date value2) {
            addCriterion("add_date between", value1, value2, "addDate");
            return (Criteria) this;
        }

        public Criteria andAddDateNotBetween(Date value1, Date value2) {
            addCriterion("add_date not between", value1, value2, "addDate");
            return (Criteria) this;
        }

        public Criteria andUpdateIdIsNull() {
            addCriterion("update_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateIdIsNotNull() {
            addCriterion("update_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateIdEqualTo(String value) {
            addCriterion("update_id =", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotEqualTo(String value) {
            addCriterion("update_id <>", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdGreaterThan(String value) {
            addCriterion("update_id >", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_id >=", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLessThan(String value) {
            addCriterion("update_id <", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLessThanOrEqualTo(String value) {
            addCriterion("update_id <=", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLike(String value) {
            addCriterion("update_id like", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotLike(String value) {
            addCriterion("update_id not like", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdIn(List<String> values) {
            addCriterion("update_id in", values, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotIn(List<String> values) {
            addCriterion("update_id not in", values, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdBetween(String value1, String value2) {
            addCriterion("update_id between", value1, value2, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotBetween(String value1, String value2) {
            addCriterion("update_id not between", value1, value2, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}